package com.zrrd.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zrrd.model.common.dtos.ResponseResult;
import com.zrrd.model.wemedia.dtos.WmMaterialDto;
import com.zrrd.model.wemedia.pojos.WmMaterial;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author WanJl
 * @version 1.0
 * @title WmMaterialService
 * @description
 * @create 2023/9/20 15:52
 */
public interface WmMaterialService extends IService<WmMaterial> {
    /**
     * 图片上传
     * @param multipartFile
     * @return
     */
    ResponseResult uploadPicture(MultipartFile multipartFile);

    /**
     * 素材列表查询
     * @param dto
     * @return
     */
    ResponseResult findList(WmMaterialDto dto);

    /**
     * 收藏素材
     * @param id
     * @return
     */
    ResponseResult collect(Integer id);

    /**
     * 取消收藏
     * @param id
     * @return
     */
    ResponseResult cancelCollect(Integer id);

    /**
     * 删除素材
     * @param id
     * @return
     */
    ResponseResult delPicture(Integer id);
}
